package com.ma;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * Screen for the user to select if they want to manage the media or take new media
 * @author Danny
 *
 */
public class Overview extends Activity implements OnClickListener
{
	Button manage, take;
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.overvview);
        manage=(Button)findViewById(R.id.manage);
        take=(Button)findViewById(R.id.take);
        manage.setOnClickListener(this);
        take.setOnClickListener(this);
    }
	@Override
	public void onClick(View v)
	{
		if(v.equals(manage))
		{
			Intent i=new Intent(this, ManageMedia.class);
			startActivity(i);
		}
		else if(v.equals(take))
		{
			Intent i=new Intent(this, TakeMedia.class);
			startActivity(i);
		}
	}
}
